# -*- coding: UTF-8 -*-

# 导入logging模块
import logging

# 导入time模块
import time

# 对日志的基本格式做配置
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s')

# 输入一些日志2，显示在控制台上
logging.info('Python program is running...')
time.sleep(1)
logging.debug('Debue mode is running...')
time.sleep(1)
logging.warning('Some resourse files cannot found!')
time.sleep(2)
logging.error('Cannot connect to equipment 90021!')
time.sleep(2)
logging.critical('Cannot connect to database!')